import simplejson
from django.shortcuts import render

from server import views


def cp(request):
    '''
    :param request:
    :return:
    '''
    res = views.cp_get(request)
    context = {'data': eval(res)}
    print(context)
    return render(request, 'index.html', context)